package com.wuwei.elearning.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "ai")
public class AiConfig {
    // 通用配置
    private String provider;  // openai, bailian, azure
    private String apiKey;    // API密钥
    private String endpoint;  // API端点
    private String modelId;   // 模型ID
    private Integer maxTokens;  // 最大token数
    private Double temperature;  // 温度
    private Integer tokenCacheTimeSeconds;  // 缓存时间
    
    // OpenAI 特有配置
    private String openaiOrganization;

    // Azure OpenAI 特有配置
    private String azureApiVersion;
    private String azureDeploymentId;
    
    // 百炼特有配置
    private String bailianAccessKeyId;
} 